package com.xgry.bpm.common.exceptions;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.sql.SQLException;

@Slf4j
public class JdbcException extends SQLException {


    public JdbcException(String errstr) {
        super("SqlDataSourceSQL" + errstr);
        StackTraceElement stackTraceElement = super.getStackTrace()[0];
        log.error("自定义信息:"+errstr+"\r\n 类："+stackTraceElement.getClassName()+"\r\n方法："+stackTraceElement.getMethodName()+"\r\n行号："+stackTraceElement.getLineNumber());
    }


}
